package com.lry.basic.lambda;

public class Demo2 {
    public static void main(String[] args) {
        Vehicle.blowHorn();
        Car car = new Car();
        car.print();

    }
}

class Car implements Vehicle,FourWheeler{

    @Override
    public void print() {
        Vehicle.super.print();
    }

}

interface Vehicle{
    default void print(){
        System.out.println("车");
    }

    static void blowHorn(){
        System.out.println("按喇叭!!!");
    }
}

interface FourWheeler{
    default void print(){
        System.out.println("车");
    }
}
